package pv.map;

import pv.finder.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

import com.google.android.gms.maps.GoogleMap.InfoWindowAdapter;
import com.google.android.gms.maps.model.Marker;

public class CustomInfoWindows implements InfoWindowAdapter {

	Context context;

	public CustomInfoWindows(Context context) {
		this.context = context;
	}

	@Override
	public View getInfoContents(Marker marker) {
		// TODO Auto-generated method stub
		LayoutInflater inflater = (LayoutInflater) context
				.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
		View view = inflater.inflate(R.layout.custom_info, null);
		((TextView) view.findViewById(R.id.txtinfo)).setText(marker.getTitle());

		return view;
	}

	@Override
	public View getInfoWindow(Marker marker) {
		// TODO Auto-generated method stub

		return null;
	}

}
